Parameters original is the full path to a folder or alias of a folder.
clone is the full path to a folder or alias of a folder.
copyFilter is the address of a Frontier script.
Action Updates the clone folder so that it contains all the files in the original folder.
Two passes are made. First the clone folder is traversed to see if it's missing any files in the original. Any missing files are copied into the clone.
Any files or sub-folders that were modified more recently than the files in the clone are also copied.
In the second pass, the clone folder is traversed to see if it contains any files or sub-folders that don't exist in the original. Those files are moved to the "Extra Files" sub-folder in the clone, which is created if it doesn't already exist.
The copyFilter callback routine is passed to file.filteredCopy, allowing you to override any copying, or to create a report of any files that were copied. See the docs for file.filteredCopy for details.
« true «after it's done, Dest will contain all the files in Source
Notes This capability is important for any user with more than one Macintosh, especially PowerBook users.
file.reconcileFolder is implemented as a Frontier script, so you can examine the source code to see how it works.
This verb is used in the FinderMenu package to implement the "Reconcile Folders" command. It's provided separately so that script writers can easily write custom scripts that reconcile specific pairs of folders.
See Also file.filteredCopy
Verb dialog.loadFromFile
Syntax dialog.loadFromFile (path)
Parameters path is the full path to a file that contains a DLOG resource with ID = 25000, and a DITL resource with the same ID.
Action Copies the DLOG and DITL into the resource fork of Frontier.root.
Returns The resource ID in Frontier.root's resource fork assigned to the DLOG/DITL.
Notes If the file doesn't exist, dialog.loadFromFile checks in the Dialogs folder in your Frontier folder. If it exists there, it's loaded.
If you're publishing a script that uses a dialog run from the Dialogs folder, we ask that you append your initials to the end of the file name to help eliminate conflicting names.
Use this verb when a dialog may run several times from within a single script. Never depend on your dialog being loaded from run to run. If a dialog can only run once within a script, use dialog.runFromFile because it is simpler.
dialog.loadFromFile is implemented as a Frontier script, so you can examine the source code to see how it works.
Notes menu.addMenuCommand is implemented as a Frontier script, so you can examine the source code to see how it works.
See Also menu.setScript
Verb FinderMenu.visitPaths
Syntax FinderMenu.visitPaths (adrCallback)
Parameters adrCallback is the address of a Frontier script that will be called once for each item selected in the Finder.
Action Calls the callback script once for each item selected in the Finder.
Returns True if all the callbacks returned true, false if it wasn't able to connect with the FinderMenu app, or if the callback returned false.
Examples FinderMenu.visitPaths (@msg)
« true «display each path in the main window in Frontier
Notes The callback routine must accept exactly one parameter, the full path to the file, folder or disk that's to be processed by the script.
If the callback returns true processing continues. If it returns false, FinderMenu.visitPaths returns false immediately without processing any other files. Use this capability, for example, when you're searching for something, and you found it.
FinderMenu.visitPaths is implemented as a Frontier script, so you can examine the source code to see how it works.